# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from django.db.models.fields.files import ImageField

# Create your models here.

class VR(models.Model):
    bt = models.CharField(max_length=20, verbose_name=u"标题")
    ico = models.ImageField(upload_to='VR', verbose_name=u"个性图标", null=True, blank=True)
    zb =models.CharField(max_length=40, verbose_name=u"坐标")
    url12 = models.URLField(max_length=100, verbose_name=u"网址")
    class Meta:
        verbose_name = "VR资源"
        verbose_name_plural = verbose_name


class td(models.Model):
    bt = models.CharField(max_length=20, verbose_name=u"标题")
    xz_choices = (
        (1, "工业"),
        (2, "商用"),
        (3, "集体"))
    xz = models.SmallIntegerField(verbose_name="性质", choices=xz_choices, default=1)
    hwx = models.CharField(max_length=6000, verbose_name=u"范围线")
    zb = models.CharField(max_length=40, verbose_name=u"坐标")
    text = models.TextField(max_length=500, verbose_name=u"简介")
    tp = models.CharField(max_length=300, verbose_name=u"图片资源")
    url12 = models.URLField(max_length=100, verbose_name=u"网址")
    class Meta:
        verbose_name = "土地资源"
        verbose_name_plural = verbose_name
    def _str_(self):
        return self.bt

class zd(models.Model):
    bt = models.CharField(max_length=20, verbose_name=u"标题")
    hwx = models.CharField(max_length=6000, verbose_name=u"范围线")
    zb = models.CharField(max_length=40, verbose_name=u"坐标")
    text = models.TextField(max_length=500, verbose_name=u"简介")
    tp = models.CharField(max_length=300, verbose_name=u"图片资源")
    url12 = models.URLField(max_length=100, verbose_name=u"网址")
    class Meta:
        verbose_name = "重点园区"
        verbose_name_plural = verbose_name
    def _str_(self):
        return self.bt


class ms(models.Model):
    bt = models.CharField(max_length=20, verbose_name=u"标题")
    ico = models.ImageField(upload_to='IMG', verbose_name=u"个性图标", null=True, blank=True)
    zb = models.CharField(max_length=40, verbose_name=u"坐标")
    text = models.TextField(max_length=500, verbose_name=u"简介")
    tp = models.CharField(max_length=300, verbose_name=u"图片资源")
    url12 = models.URLField(max_length=100, verbose_name=u"网址")
    class Meta:
        verbose_name = "旅游资源"
        verbose_name_plural = verbose_name
    def _str_(self):
        return self.bt

class Img(models.Model):
    img_url = models.ImageField(upload_to='IMG',blank=True,null=True)